package com.amado.course52Jvm;

import java.net.URL;
import java.util.Base64;

/**
 * @author wangyulong
 * @version 1.5.0
 * @date 2020/5/3 23:27
 */
public class ClassLoadTest {
    public static void main(String[] args) {
        System.out.println(String.class.getClassLoader());
        System.out.println(Base64.Encoder.class.getClassLoader());
        System.out.println(ClassLoadTest.class.getClassLoader().getParent());

        test();
    }
    public static void test() {
        URL[] urls = sun.misc.Launcher.getBootstrapClassPath().getURLs();
        for (int i = 0; i < urls.length; i++) {
            System.out.println(urls[i].toExternalForm());
        }
        System.out.println(System.getProperty("java.ext.dirs"));
    }
}
